/*
 * GLWeaponSlot.h
 *
 *  Created on: Nov 24, 2014
 *      Author: yuliang
 */

#ifndef GLWEAPONSLOT_H_
#define GLWEAPONSLOT_H_

#include "LogicBase/GLContainerBase.h"

class CGLWeaponSlot : public CGLContainerBase {
public:
	CGLWeaponSlot(const UserId_t& uid);
	virtual ~CGLWeaponSlot();

	virtual bool DecodeGoodsExtend(uint8_t box, Index_t index, const std::string& info);
	virtual bool EncodeGoodsExtend(CGLGoodsBase*, std::string& info);
protected:
	// 新建物品,并初始化
	virtual CGLGoodsBase* getGoods();
	virtual void setGoods(CGLGoodsBase* goods);
	virtual const GoodsFixInfo* getGoodsFixInfo(Type_t type) const;
};

#endif /* GLWEAPONSLOT_H_ */
